package cn.schoolwow.workflow.domain.task;

/**审批类型*/
public enum AuditType {
    /**会签*/
    ConcurrentApproval(0),
    /**或签*/
    AlternativeApproval(1);

    public int value;

    AuditType(int value) {
        this.value = value;
    }

    public static AuditType getAuditTypeByValue(int value){
        AuditType[] auditTypes = AuditType.values();
        for(AuditType auditType:auditTypes){
            if(auditType.value==value){
                return auditType;
            }
        }
        throw new IllegalArgumentException("不支持的审批类型!值:"+value);
    }
}
